home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ttf-arphic-uming.preinst < prev    next >
Text File  |  2008-09-22  |  830b  |  35 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. # Purge leftovers from the old package if present
  5.  
  6. PACKAGE=ttf-arphic-uming
  7. OLDTTF=uming.ttf
  8. OLDMBETTF=umingmbe.ttf
  9.  
  10. if [ -e /etc/defoma/hints/${PACKAGE}.hints ]; then
  11.   defoma-font -t purge-all /etc/defoma/hints/${PACKAGE}.hints
  12. fi
  13. if [ -e /etc/defoma/hints/${PACKAGE}-mbe.hints ]; then
  14.   defoma-font -t purge-all /etc/defoma/hints/${PACKAGE}-mbe.hints
  15.   rm -f /etc/defoma/hints/${PACKAGE}-mbe.hints
  16. fi
  17.  
  18. for X in [ /etc/fonts/conf.d/70-${PACKAGE}.conf \
  19. /etc/fonts/conf.d/${PACKAGE} \
  20. /usr/share/fonts/truetype/${OLDTTF} \
  21. /usr/share/fonts/truetype/${OLDMBETTF} \
  22. /var/lib/defoma/x-ttcidconf.d/dirs/TrueType/${OLDTTF} \
  23. /var/lib/defoma/x-ttcidconf.d/dirs/TrueType/${OLDMBETTF} \
  24. ]; do
  25.   if [ -e ${X} ]; then
  26.     rm -f ${X};
  27.   fi;
  28. done
  29.  
  30. if [ -d /usr/share/${PACKAGE} ]; then
  31.   rm -rf /usr/share/${PACKAGE};
  32. fi
  33.  
  34.  
  35.